<!--[if !IE]>start section<![endif]-->
<div class="section table_section">
<div class="section_extra">
<ul class="ul_buttons">
	<li><span class="button green_btn"> <span> <span><?php echo $html->link(__('New Group', true), array('action' => 'add')); ?></span></span></span></li>
			<li><span class="button green_btn">
								<span>
									<span><?php echo $html->link(__('List Permissions', true), array('controller' => 'permissions', 'action' => 'index')); ?> </span></span></span></li>
		<li><span class="button green_btn">
								<span>
									<span><?php echo $html->link(__('New Permission', true), array('controller' => 'permissions', 'action' => 'add')); ?> </span></span></span></li>
		<li><span class="button green_btn">
								<span>
									<span><?php echo $html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </span></span></span></li>
		<li><span class="button green_btn">
								<span>
									<span><?php echo $html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </span></span></span></li>
</ul>
<div class="clear"></div>
</div>
<div class="section_inner">
<div class="title_wrapper">
<h2><?php __('Groups');?></h2>
<div class="right">&nbsp;</div>
</div>
<div class="section_content">
<?php
echo $form->create('Search', array('url' => 'dataSearch','class'=>'search_form general_form'));
?><fieldset>
<div class="forms" style="margin-left: 0px">
<div class="row" style="margin-left: 10px"><label> <?php __('Group Search');?></label>
<div class="inputs"><span class="input_wrapper"> <?php echo $form->text('name',array('class'=>'text'));?></span> <span class="button send_form_btn"><span><span><?php __('Search');?></span></span><input
	type="submit" value="Search" /></span></div>
</div>
</div>
</fieldset>
<?php echo $form->end(); ?> 
<?php echo $form->create('Process', array('url' => 'process','class'=>'search_form general_form'));?><div class="table_wrapper">
<div class="table_wrapper_inner">
<table cellpadding="0" cellspacing="0" width="100%">
	<tbody>
		<tr>
			<th>&nbsp;</th>
					<th><?php echo $paginator->sort('id');?></th>
						<th><?php echo $paginator->sort('name');?></th>
						<th><?php echo $paginator->sort('created');?></th>
						<th><?php echo $paginator->sort('modified');?></th>
						<th class="actions"><?php __('Actions');?></th>
		</tr>
		<?php
							$i = 0;
							foreach ($groups as $group):
								$class = null;
								if ($i++ % 2 != 0) {
									$class = ' class="second"';
								}
							?>
	<tr<?php echo $class;?>>
		<td class="first_td">
		<?php echo $form->checkbox('Groups.id.['.$group['Group']['id'].']', array('value' => $group['Group']['id'],"name"=>"data_id_checkbox")); ?> 
		</td>
		<td>
			<?php echo $group['Group']['id']; ?>
		</td>
		<td>
			<?php echo $html->link($group['Group']['name'], array('action' => 'view', $group['Group']['id']),array('class'=>'product_name')); ?>
		</td>
		<td>
			<?php echo $group['Group']['created']; ?>
		</td>
		<td>
			<?php echo $group['Group']['modified']; ?>
		</td>
		<td>
<div class="actions_menu"><ul>			<li><?php echo $html->link(__('Edit', true), array('action' => 'edit', $group['Group']['id']),array('class'=>'edit')); ?></li> 
			<li><?php echo $html->link(__('Delete', true), array('action' => 'delete',$group['Group']['id']), array('class'=>'delete'), sprintf(__('Are you sure you want to delete  %s?', true), $group['Group']['id'])); ?></li> 
</ul></div> 
		</td>
	</tr>
<?php endforeach; ?>
	</tbody>
</table>
</div>
</div>
<fieldset>
<div class="forms" style="margin-left: 0px">
<div class="row" style="margin-left: 10px">
<div class="inputs"><?php echo $form->checkbox("checkAll",array("id"=>"chk_all","name"=>"chk_all","class"=>"checkbox_left")); ?><span
	class="small_checkbox">&nbsp;<?php echo __("Select All",true);?></span>
<span class="input_wrapper blank"><?php echo $form->input("action",array("options"=>array("Publish","Front Page","Featured","Delete"),"label"=>false,"div"=>false)); ?></span> <span class="button send_form_btn"><span><span><?php __('Go');?></span></span><input
	type="submit" value="Search"
	onClick="return confirm('<?php echo __("Are you sure you want to do this action ?",true); ?>');" /></span></div>
</div>
</div>
</fieldset>
<?php echo $form->end(); ?><div class="pagination"><span class="page_no"> <?php echo $paginator->counter(array('format' => __('Page %page% of %pages%', true))); ?></span>
<ul class="pag_list">
<?php if($paginator->hasPrev()): ?>	<li><span class="left_button_pagination">&nbsp;</span> 	<?php echo $paginator->prev(__('Previous', true),array('class'=>'button small_button pag_nav'),null,null, array('class'=>'disabled'));?>
	<span class="right_button_pagination">&nbsp;</span></li>
	<?php endif; ?>	<?php
			 	echo $paginator->numbers(array(
						'tag' => 'li',
						'before'=> null,
			 		 	'after'=> null,
						 null,
						'modulus' => '8',
						'separator' => '',
						'first' => null, 
						'last' => null,
				)); ?>	<?php if($paginator->hasNext()):?>	<li><span class="left_button_pagination">&nbsp;</span> 	<?php echo $paginator->next(__('Next', true),array('class'=>'button small_button pag_nav'),null, null, array('class'=>'disabled'));?>
	<span class="right_button_pagination">&nbsp;</span></li>
	<?php endif; ?></ul>

</div>

</div>
</div>
</div>

